import requests

url='https://www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png'
resp=requests.get(url)

with open('logo.png', 'wb') as file:
    file.write(resp.content)